# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/22 下午6:29
 @Author  : tgy
 
"""


def test01():
    s = '1231'
    print(s.center(20, '#'))
    print(s.ljust(20,'*'))
    print(s.rjust(20,'<'))


def test02():
    ...
    print(format('123', '#>20'))
    print(format('123', '#^20'))
    print(format('123', '#<20'))
    print('{} {:>10}'.format('hello', 'word'))

if __name__ == '__main__':
    ...
    test02()